1 : <?php
2 : /*--------------------------------------------------------------------------+
3 : This file is part of eStudy.
4 : planspiel/classes/class.barchart.inc.php
5 : - Modulgruppe: Planspiel
6 : - Beschreibung: Generiert ein BarCharting Diagramm
7 : - Version: 1.0
8 : - Autor(en): Marcel Knapp <marcel.knapp@mni.fh-giessen.de>
9 : +---------------------------------------------------------------------------+
10 : This program is free software; you can redistribute it and/or
11 : modify it under the terms of the GNU General Public License
12 : as published by the Free Software Foundation; either version 2
13 : of the License, or any later version.
14 : +---------------------------------------------------------------------------+
15 : This program is distributed in the hope that it will be useful,
16 : but WITHOUT ANY WARRANTY; without even the implied warranty of
17 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 : GNU General Public License for more details.
19 : You should have received a copy of the GNU General Public License
20 : along with this program; if not, write to the Free Software
21 : Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 : +--------------------------------------------------------------------------*/
23 : /**
24 : * Generiert ein BarCharting Diagramm
25 : * @package eStudy.Planspiel
26 : * @version 1.0
27 : * @author Marcel Knapp <marcel.knapp@mni.fh-giessen.de>
28 : */
29 :
30 : class BudgetIndicators
31 : {
32 : // BudgetIndicators
33 : private $indicator_A;
34 : private $indicator_B;
35 : private $indicator_C;
36 : // Rewviewer Anteil an einem Dokument
37 : const REVIEWER_ANTEIL = 10;
38 :
39 : function BudgetIndicators($indicator_A, $indicator_B, $indicator_C)
40 : {
41 0 : $this->indicator_A = $indicator_A;
42 0 : $this->indicator_B = $indicator_B;
43 0 : $this->indicator_C = $indicator_C;
44 0 : }
45 :
46 : public function GetIndicatorA()
47 : {
48 0 : return round($this->indicator_A, 2);
49 : }
50 :
51 : public function GetIndicatorB()
52 : {
53 0 : return round($this->indicator_B, 2);
54 : }
55 :
56 : public function GetIndicatorC()
57 : {
58 0 : return round($this->indicator_C, 2);
59 : }
60 :
61 : public function AddReviewerBudget()
62 : {
63 0 : $this->indicator_A = $this->indicator_A * (100 + self::REVIEWER_ANTEIL) / 100;
64 0 : $this->indicator_B = $this->indicator_B * (100 + self::REVIEWER_ANTEIL) / 100;
65 0 : $this->indicator_C = $this->indicator_C * (100 + self::REVIEWER_ANTEIL) / 100;
66 0 : }
67 : }
68 : ?>
|